<?php
/*
 * Created on Dec 2, 2010
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
class CategoryDomain
{
	public $id;
	public $parentId;
	
	public $name;
	public $filteredName;
	
	public $title;
	public $descript;
	
	public $r_couponCount;

	public $level;
	public $isLeaf;
	
	public $status;
	
	public $subCategories = array();
	
	public function setId($id)
	{
		$this->id = $id;
	}
	
	public function getId()
	{
		return $this->id;
	}
	
	public function setParentId($parentId)
	{
		$this->parentId = $parentId;
	}
	
	public function getParentId()
	{
		return $this->parentId;
	}
	
	public function setName($name)
	{
		$this->name = $name;
	}
	
	public function getName()
	{
		return $this->name;
	}
	
	public function setTitle($title)
	{
		$this->title = $title;
	}
	
	public function getTitle()
	{
		return $this->title;
	}
	
	public function setDescript($descript)
	{
		$this->descript = $descript;
	}
	
	public function getDescript()
	{
		return $this->descript;
	}

	public function setCouponCount($r_couponCount)
	{
		$this->r_couponCount = $r_couponCount;
	}
	
	public function getCouponCount()
	{
		return $this->r_couponCount;
	}
	
	public function setLevel($level)
	{
		$this->level = $level;
	}
	
	public function getLevel()
	{
		return $this->level;
	}
	
	public function addSubCategory($subCategories)
	{
		$this->subCategories[] = $subCategories;
	}
	
	public function getSubCategories()
	{
		return $this->subCategories;
	}
	
	public function getFilteredName()
	{
		return strtolower(StringUtils::getCharNum($this->getName()));
	}
	
}
?>
